package com.llgz.hotelmanageapi.pojo.DO;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 客户消费表
 * </p>
 *
 * @author Bernie_fang
 * @since 2021-07-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class ConsumptionInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 入住单号
     */
    private String checkinId;

    /**
     * 客房编号
     */
    private Integer roomId;

    /**
     * 商品名
     */
    private String commodityName;

    /**
     * 数量
     */
    private Integer quantity;

    /**
     * 消费金额
     */
    private Double consumptionAmout;

    /**
     * 折扣率
     */
    private Double discountRate;

    /**
     * 折扣金额
     */
    private Double discountAmout;

    /**
     * 合计
     */
    private Double sum;

    /**
     * 操作员
     */
    private String operator;

    /**
     * 消费时间
     */
    private Date consumptionTime;

    /**
     * 备注
     */
    private String remarks;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createdTime;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date modifiedTime;

    /**
     * 软删除
     */
    @TableLogic
    private Boolean deleted;


}
